package com.daidai.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daidai.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    public Employee getAllByIdAndName(@Param("id")int id, @Param("name")String name);
//    @Select("select * from employee")
    public List<Employee> getAllEmployees();
}
